<div ng-controller="searchBoxDemoCtrl">
    <uix-search-box ng-model="query" show-btn="showButton" btn-text="Search" search="doSearch()" placeholder="按照文件名搜索内容"></uix-search-box>
    <br/>
    <uix-search-box ng-model="query" search="doSearch()"></uix-search-box>
    <hr/>
    <pre>Query:{{query}}</pre>
    <button class="btn btn-default" type="button" ng-click="toggleButton()">toggleButton</button>
    <button class="btn btn-primary" type="button" ng-click="query = ''">Clear</button>
</div>